﻿<%@ Page Language="C#" MasterPageFile="~/touchscreen/defaultLayout.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="touchscreen_buyTicket" %>
<%@ MasterType  virtualPath="~/touchscreen/defaultLayout.master"%>
<asp:Content ID="maincontent" ContentPlaceHolderID="main" runat="server">
    <form id="buyTicket" runat="server">
        <div class="content">
            <div class="stepContainer">
                <ul class="steps">
                    <a href="<% Page.ResolveClientUrl("~/touchscreen/BuyTicket"); %>">
                        <li class="step active">
                            <asp:Label runat="server" ID="stap_1" />
                        </li>
                    </a>
                    <li class="step">
                        <asp:Label runat="server" ID="stap_2" />
                    </li>
                    <li class="step">
                        <asp:Label runat="server" ID="stap_3" />
                    </li>
                    <li class="step">
                        <asp:Label runat="server" ID="stap_4" />
                    </li>
                </ul>
            </div>
            <div class="movieListContainer">
                <asp:Repeater runat="server" ID="movieList">
                    <ItemTemplate>
                        <asp:HiddenField ID="hiddenMovieID" runat="server" Value='<%# Eval("film_id") %>' />
                        <a href="<%# Page.ResolveClientUrl( "~/touchscreen/Buyticket/SelectedMovie.aspx?MovieID=" + Eval("film_id")) %>">
                            <div class="moviedivItem">
                                <div class="movieListPicture">
                                    <img src="<%# Eval("url") %>" height="120" />
                                </div>
                                <div class="movieListTitle">
                                    <%# Eval("naam") %>
                                </div>
                                <div class="movieListDuration">
                                    <asp:Label runat="server" ID="duration" /> <%# Eval("duur") %> minuten
                                </div>
                                <div class="movieListTimes">
                                    <asp:Label runat="server" ID="times" />
                                    <asp:Repeater ID="planningRepeater" runat="server">
                                      <ItemTemplate>
                                          <asp:Label ID="time" Text="<%#Container.DataItem %>" runat="server" />
                                      </ItemTemplate>
                                    </asp:Repeater>
                                </div>
                                <div class="movieListGenres">
                                    <asp:Label runat="server" ID="genres" />
                                    <asp:Repeater runat="server" DataSource='<%# Eval("genres") %>'>
                                      <ItemTemplate>
                                        <%# Eval("genre1") %> |
                                      </ItemTemplate>
                                    </asp:Repeater>
                                </div>
                                <div class="movieListTickets">
                                    <asp:Label runat="server" ID="availableTicketsName" />
                                    <asp:Label runat="server" ID="availableTickets" />
                                </div>
                                <div class="moviekijkwijzer">
                                    <asp:Repeater runat="server" DataSource='<%# Eval("kijkwijzers") %>'>
                                      <ItemTemplate>
                                        <img src="<%# Eval("kijkwijzer_symbool") %>" height="40" />
                                      </ItemTemplate>
                                    </asp:Repeater>
                                </div>
                            </div>
                        </a>
                    </ItemTemplate>
                </asp:Repeater>    
                <div class="clearDiv"></div>
            </div>
            <div id="backButton">
                <asp:HyperLink NavigateUrl="~/touchscreen/Default.aspx" CssClass="smallButton blueButton smallButtonBigger" runat="server" ID="Button1" Text="Terug" />
            </div>
        </div> 
    </form>
</asp:Content>